projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b47f335
)
python.el: better limit for looking-back calls
author
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Mon, 11 May 2015 03:03:08 +0000
(
00:03
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Mon, 11 May 2015 03:03:08 +0000
(
00:03
-0300)
* lisp/progmodes/python.el (python-shell-accept-process-output):
Use last comint prompt start as limit for looking-back.
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 2e7410ac833296481a5236ba3633dd3f51a10987..4b0a028faa3aa3d3e533a4391d50f4338e965285 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-2268,7
+2268,8
@@
banner and the initial prompt are received separately."
(while t
(when (not (accept-process-output process timeout))
(throw 'found nil))
- (when (looking-back regexp (point-min))
+ (when (looking-back
+ regexp (car (python-util-comint-last-prompt)))
(throw 'found t))))))
(defun python-shell-comint-end-of-output-p (output)